package cn.com.tupperware.test;

import org.junit.Test;

import org.springframework.beans.factory.annotation.Autowired;
import cn.com.tupperware.entity.Customers;
import cn.com.tupperware.service.ICustomerService;

public class SampleService extends TestBase {
	// private ApplicationContext ac = null;
	@Autowired
	private ICustomerService customerService = null;
	// @Autowired
	// private IIndexService indexService;

	@Test
	public void TestServiceSample() {
		Customers cust = customerService.getCustomerById("WOLZA");
		System.out.println(cust.getContactname());
		cust.setContactname(cust.getContactname() + " test");
		cust = customerService.getCustomerById("WOLZA");
		System.out.println(cust.getContactname());
		// indexService.doIndex();
	}

}